from flask import Flask, request, render_template, jsonify, make_response

app = Flask(__name__)

app.config.from_pyfile("config.py")


@app.route("/home")
def home():
    name1 = "傻子"
    age1 = 20
    username = "命运神子"
    blog = ["你是在北京市", "还是在通州区"]
    add = {"city": "北京市 ", "shiqu": "通州区"}
    books = [{"作品": "网游之天下无敌", "作者": "孤雨随风", "主角": "宇无尘"}, {"作品": "灵武帝尊", "作者": "孤雨随风", "主角": "辰天"}]
    return render_template("homelist.html", name=name1, age=age1, address=add, username=username, blog=blog,
                           books=books)


if __name__ == '__main__':
    app.run()
